﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace Frogger
{
    class Luas : Automobile
    {
        public Luas(Texture2D textureImage, Vector2 position,
            Point frameSize, int collisionOffset, Point currentFrame, Point sheetSize,
            Vector2 speed, string name, int scoreValue)
            : base(textureImage, position, frameSize, collisionOffset, currentFrame,
            sheetSize, speed, name, scoreValue)
        {
        }

        public Luas(Texture2D textureImage, Vector2 position,
            Point frameSize, int collisionOffset, Point currentFrame, Point sheetSize,
            Vector2 speed, int millisecondsPerFrame, string name,
            int scoreValue)
            : base(textureImage, position, frameSize, collisionOffset, currentFrame,
            sheetSize, speed, millisecondsPerFrame, name, scoreValue)
        {
        }
        public Luas(Texture2D textureImage, Vector2 position,
            Point frameSize, int collisionOffset, Point currentFrame, Point sheetSize,
            Vector2 speed, string name, int scoreValue, float scale)
            : base(textureImage, position, frameSize, collisionOffset, currentFrame,
            sheetSize, speed, name, scoreValue, scale)
        {
        }

        //Return the collision Rectangle, it is a little different from others
        public override Rectangle collisionRect
        {
            get
            {
                return new Rectangle(
                    (int)(__position.X + (__collisionOffset * __scale)),
                    (int)(__position.Y + (__collisionOffset * __scale)),
                    (int)((__frameSize.Y - (__collisionOffset )) * __scale),
                    (int)((__frameSize.X - (__collisionOffset )) * __scale)
                    );
            }
        }
    }
}
